package com.jason.designpattern.factory.simple;

/**
 * @description: 面的简单工厂类
 * @author: jason.jia
 * @create: 2019-01-22 14:06
 **/
public class SimpleNoodlesFactory {

    public static int LZ = 1;

    public static int PAO = 2;

    public static int SAOZ = 3;

    public static INoodles createNoodles(int type){

        switch (type){
            case 1:
                return new LzNoodles();
            case 2:
                return new PaoNoodles();
            case 3:
            default:
                return new SaoZNoodles();
        }
    }
}
